﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="Inovout.Memberships"
				        namespace="Inovout.Memberships.Models">

  <class name="MembershipUser" table="Memberships_MembershipUser">
     <id name="Id" access="field.camelcase"
        column="MembershipUserId" type="Int32">
      <generator class="native" />
    </id>
     <many-to-one name="Membership" column="MembershipId" cascade="all" class="Inovout.Memberships.Models.Membership,Inovout.Memberships.Models"/>
    <property name="IdentifierCode" />
    <property name="Email"/>
    <property name="Status" />
    <property name="MembershipType" access="field.camelcase" />
    <many-to-one name="SystemUser" column="SystemUserId" class="Inovout.Security.SystemUser,Inovout.Security" cascade="all"/>
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>